<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>辅助档案页面</title>
<!-- 项目基准路径 -->
<base href="/bestinc/" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- 引入layUI的css -->
<link rel="stylesheet" href="static/lib/layui/css/layui.css"
	media="all">
<link rel="stylesheet" href="static/css/util.css" />
<link rel="stylesheet" href="static/css/xadmin.css" />
<script src="static/js/jquery.min.js" charset="utf-8"></script>
<!-- 引入layUI的js -->
<script src="static/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript"
	src="static/js/base/record/subset.js" charset="utf-8"></script>
</head>
<body>
	<!-- 单页面刷新 -->
	<div class="x-nav"
		style="width:; border-radius: 5px; margin: 5px; border: 1px solid #eee;">
		<span class="layui-breadcrumb" style="visibility: visible;"> <a
			href="javascript:;">首页</a><span lay-separator="">/</span> <a
			href="javascript:;">演示</a><span lay-separator="">/</span> <a> <cite>辅助档案</cite></a>
		</span> <a class="layui-btn layui-btn-small"
			style="line-height: 1.6em; margin-top: 3px; float: right; height: 30px;"
			onclick="location.reload()" title="刷新"> <i
			class="layui-icon layui-icon-refresh" style="line-height: 30px"></i></a>
	</div>
	<div id="content">
	
	<!-- 头部搜索框 -->
	<div id="search-header">
		<form class="layui-form">
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">辅助档案名</label>
					<div class="layui-input-inline">
						<input type="text" id="subsetNameSearch" name="subsetName" placeholder="请输入"
							autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">基础档案名</label>
					<div class="layui-input-inline">
						<input type="text" id="archivesNameSearch" name="archivesName" placeholder="请输入"
							autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">是否可用</label>
					<div class="layui-input-inline">
						<select id="useableSearch" name="useable">
							<option value=""></option>
							<option value="N">否</option>
							<option value="Y">是</option>
						</select>
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label"></label>
					<div class="layui-input-inline">
						<button class="layui-btn" lay-submit=""
							lay-filter="subsetSearchBtn">
							<i class="layui-icon layui-icon-search"></i> 查询
						</button>
						<button class="layui-btn" type="reset">
							<i class="layui-icon layui-icon-refresh"></i> 重置
						</button>
					</div>
				</div>
			</div>
		</form>
	</div>

	<!-- 辅助档案数据表格 -->
	<div id="dataTable">
		<table class="layui-hide" id="subsetTable" lay-filter="subsetTableEvent"></table>
	</div>
	<!-- 添加模态框 -->
	<div id="addSubsetModel" class="definedModal">
		<!-- 这里手动加表单样式 -->
		<form id="addSubsetForm" lay-filter="addSubsetForm" class="layui-form"
			action="">
			<div class="layui-form-item">
				<label class="layui-form-label">辅助档案名</label>
				<div class="layui-input-block">
					<input type="text" name="subsetName" lay-verify="required"  my-verify="addSubsetName"
						placeholder="请输入辅助档案名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">基础档案名</label>
				<div class="layui-input-block">
					<select name="archivesId" id="archivesId" lay-verify="required"
						lay-filter="archivesId">
						<option value=""></option>
					</select>
				</div>
			</div>
			<input type="hidden" name="archivesName" value=""/>
			<div class="layui-form-item layui-form-text">
				<label class="layui-form-label">描述</label>
				<div class="layui-input-block">
					<textarea name="description" placeholder="请输入内容"
						class="layui-textarea"></textarea>
				</div>
			</div>
		</form>
	</div>

	<!-- 修改模态框 -->
	<div id="updateSubsetModel" class="definedModal">
		<!-- 这里手动加表单样式 -->
		<form id="updateSubsetForm" lay-filter="updateSubsetForm"
			class="layui-form" action="">
			<input type="hidden" name="_method" value="PUT" />
			<input type="hidden" name="subsetId"/>
			<input type="hidden" name="archivesId"/>
			<div class="layui-form-item">
				<label class="layui-form-label">辅助档案名</label>
				<div class="layui-input-block">
					<input type="text" name="subsetName" lay-verify="required"  my-verify="updateSubsetName"
						placeholder="请输入辅助档案名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">基础档案名</label>
				<div class="layui-input-block">
					<input type="text" name="archivesName" placeholder="请输入"
						autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">是否可用</label>
				<div class="layui-input-block">
					<select name="useable" lay-filter="aihao">
						<option value=""></option>
						<option value="N">否</option>
						<option value="Y">是</option>
					</select>
				</div>
			</div>
			<div class="layui-form-item layui-form-text">
				<label class="layui-form-label">描述</label>
				<div class="layui-input-block">
					<textarea name="description" placeholder="请输入内容"
						class="layui-textarea"></textarea>
				</div>
			</div>
			
		</form>
	</div>
	<!-- 头部工具栏 -->
	<script type="text/html" id="recordToolbar">
		<div class="layui-btn-group">
			<button lay-event="addRecord" class="layui-btn layui-btn-primary layui-btn-sm" title="添加"><i class="layui-icon">&#xe654;</i>添加 </button>
			<button lay-event="updateRecord" class="layui-btn layui-btn-primary layui-btn-sm" title="修改"><i class="layui-icon">&#xe642</i>修改 </button>
			<button lay-event="frozenRecord" class="layui-btn layui-btn-primary layui-btn-sm" title="冻结"><i class="layui-icon">&#xe640;</i>冻结 </button>
			<button lay-event="recoverRecord" class="layui-btn layui-btn-primary layui-btn-sm" title="恢复"><i class="layui-icon">&#xe666;</i>恢复 </button>
		</div>
	</script>

	
	<!-- 状态 -->
	<script type="text/html" id="checkboxTpl">
    	<span {{d.useable=='Y'? 'class="useable font-color font-size my-bg-green"': 'class="useable font-color font-size my-bg-red"'}}>{{d.useable=='Y'?'可用':'禁用'}}</span>
	</script>

	<!-- 工具栏列 -->
	<script type="text/html" id="subsetBar">
  		<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
	</script>
	</div>
</body>
</html>